package com.lzh.client;

import com.lzh.pojo.repVo.BaseResp;

import com.lzh.pojo.repVo.UpdateRes;
import feign.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author
 * @Description
 * @Date 2022/3/28
 */
@FeignClient(name = "tg-train",path = "/train")
public interface TicketClients {
    @RequestMapping("/update")
    //修改  id：支付成功后的订单id
    public BaseResp update(@RequestBody UpdateRes updataRes) ;
    //id查询
    @RequestMapping("/findById")
    public BaseResp findById(@RequestParam("id") Integer id) ;
}
